<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductsModel extends Model
{
    //
     protected $table="products";
    protected $primaryKey="prductid";
    protected $fillable=["productname","typename","price","comp","intro"];
    public $timestamps = false;

    public function add($data){

    	return self::create($data);
    }
    public function update1($id,$data){

    	return self::find($id)->update($data);
    }
}
